import * as request from '/util/request/req.js';
//根据条件查询记录
export const getRcordsByCustomApi=(names,timeScope)=>{
	return new Promise((resolve, reject) => {
	    request.get('/records/get/'+names+'/'+timeScope, null,
	        (data) => {
	            console.log('GET 请求成功：', data);
	            resolve(data); // 将响应数据传递给外部调用
	        },
	        (err) => {
	            console.error('GET 请求失败：', err);
	            reject(err); // 将错误信息传递给外部调用
	        }
	    );
	});
	
	
} 